package scheduler;

import java.util.UUID;


public class Task {
	private int timeToSleep = 0;
	private UUID _id = null;
	private int _result = -1;
	
	public Task(){
		_id = UUID.randomUUID();
	}
	
	public Task(String id, String time) {
		_id = UUID.fromString(id);
		timeToSleep = Integer.parseInt(time); 
	}

	public int getTimeToSleep() {
		return timeToSleep;
	}
	public void setTimeToSleep(int timeToSleep) {
		this.timeToSleep = timeToSleep;
	}
	public UUID getId() {
		return _id;
	}
	public void setId(UUID id) {
		this._id = id;
	}
	public void setResult(int result){
		_result = result;
	}

	public int getResult() {
		return _result;
	}
}
